<?php

/** app path * */
$root = dirname(__FILE__) . DIRECTORY_SEPARATOR . '..';
define('ROOT', $root);


//define('APP_TIMEZONE', 'Asia/Ho_Chi_Minh');
define('RESOURCE_URL', 'http://localhost/yii/content_project/www/resources/');
define('AVATAR_URL', 'http://localhost/yii/content_project/www/uploads/avatar/');
define('SITE_NAME', 'Content');
define('SLOGAN', 'We build apps for better life experience');
define('SITE_NAME_URL', 'http://localhost/yii/content_project/');
define('SUPPORT_EMAIL', 'info@myproject.com');
define('FRONT_SITE_URL', 'http://localhost/yii/content_project/');
define('BACKEND_SITE_URL', 'http://localhost/yii/content_project/backend/');
define('WWW_URL', 'http://localhost/yii/content_project/www/');

/* * ****file****** */
$wwwPath = ROOT . DIRECTORY_SEPARATOR . 'www' . DIRECTORY_SEPARATOR;
define('UPLOAD_PATH', $wwwPath . 'uploads' . DIRECTORY_SEPARATOR);
define('AVATAR_PATH', $wwwPath . 'uploads' . DIRECTORY_SEPARATOR . 'avatar' . DIRECTORY_SEPARATOR);
define('UPLOAD_URL', WWW_URL . 'uploads/');
define('THUMB_PATH', $wwwPath . 'thumbs' . DIRECTORY_SEPARATOR);
define('THUMB_URL', WWW_URL . 'thumbs/');
//post
define('UPLOAD_PATH_POST', UPLOAD_PATH . 'post/images/');
define('UPLOAD_URL_POST', UPLOAD_URL . 'post/images/');
//category
define('UPLOAD_PATH_CAT', UPLOAD_PATH . 'category/');
define('UPLOAD_URL_CAT', UPLOAD_URL . 'category/');
//background
define('UPLOAD_PATH_BACKGROUND', UPLOAD_PATH . 'background/');
define('UPLOAD_URL_BACKGROUND', UPLOAD_URL . 'background/');
//caching
define('FRONTEND_CLEAR_CACHE_KEY', 'af234uajad234piasdjal32');
define('CURR_TIME', time());

//total record of post
define('TOTAL_RECORD_MYPOST', 30); //in mypost
//total comment
define('TOTAL_COMMENT', 3);

//status read
define('READED', 1);
define('NOT_READ', 0);